package com.imachen.basic.service;

import com.imachen.basic.query.BaseQuery;
import com.imachen.basic.utils.PageList;

import java.util.List;

public interface IBaseService<T> {
    void add(T t);
    void delete(Long id);
    void update(T t);
    T findOneById(Long id);
    List<T> findAll();
    PageList<T> queryPage(BaseQuery baseQuery);
    // 批量删除
    void patchDelete(List<Long> ids);
}
